import React, { Component } from 'react';
import {MyBannerStyled} from 'styled/My/MyBannerStyled.js'

class MyBanner extends Component {
    constructor(){
        super()
        this.state={
            bannerData:[
                {dataId:0,src:'http://static.jiudoujishi.com/static1/user/banner-one.png'},
                {dataId:1,src:'http://static.jiudoujishi.com/static1/user/banner-two.png'}
            ]
        }
    }
    render() {
        return (
            <MyBannerStyled>
                {
                    this.state.bannerData.map(item=>{
                        return (
                            <img key={item.dataId} src={item.src} alt=""/>
                        )
                    })
                }
            </MyBannerStyled>
        );
    }
}

export default MyBanner;